package telepasea.app;

import android.app.Activity;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.util.Log;

public class GPS_Class extends Activity {
	Location getLocation() {
		LocationManager locManager;
		Location location;

		locManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);

		if ((location = locManager
				.getLastKnownLocation(LocationManager.NETWORK_PROVIDER)) == null) {
			Log.v("listUI", "GPS OFF");
			return null;
		}

		return location;
	}
}
